/******************************************************************************
 * Product: Adempiere ERP & CRM Smart Business Solution                       *
 * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved.                *
 * This program is free software, you can redistribute it and/or modify it    *
 * under the terms version 2 of the GNU General Public License as published   *
 * by the Free Software Foundation. This program is distributed in the hope   *
 * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.           *
 * See the GNU General Public License for more details.                       *
 * You should have received a copy of the GNU General Public License along    *
 * with this program, if not, write to the Free Software Foundation, Inc.,    *
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.                     *
 * For the text or an alternative of this public license, you may reach us    *
 * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA        *
 * or via info@compiere.org or http://www.compiere.org/license.html           *
 *****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;

import java.math.BigDecimal;
import java.sql.ResultSet;
import java.util.Properties;
import org.compiere.util.Env;

/** Generated Model for bpm_standartCharge
 *  @author Adempiere (generated) 
 *  @version Release 3.7.0LTS - $Id$ */
public class X_bpm_standartCharge extends PO implements I_bpm_standartCharge, I_Persistent 
{

	/**
	 *
	 */
	private static final long serialVersionUID = 20130927L;

    /** the default Constructor */
    public X_bpm_standartCharge(Properties ctx)
    { 
      super (ctx, null, null);
    } 

    /** Standard Constructor */
    public X_bpm_standartCharge (Properties ctx, int bpm_standartCharge_ID, String trxName)
    {
      super (ctx, bpm_standartCharge_ID, trxName);
      /** if (bpm_standartCharge_ID == 0)
        {
			setAmount (Env.ZERO);
// 0
			setamountemployee (Env.ZERO);
// 0
			setbpm_standartCharge_ID (0);
			setBPM_StandartHours_ID (0);
			setC_Charge_ID (0);
			setChargeName (null);
        } */
    }

    /** Load Constructor */
    public X_bpm_standartCharge (Properties ctx, ResultSet rs, String trxName)
    {
      super (ctx, rs, trxName);
    }

    /** AccessLevel
      * @return 3 - Client - Org 
      */
    protected int get_AccessLevel()
    {
      return accessLevel.intValue();
    }

    /** Load Meta Data */
    protected POInfo initPO (Properties ctx)
    {
      POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
      return poi;
    }

    public String toString()
    {
      StringBuffer sb = new StringBuffer ("X_bpm_standartCharge[")
        .append(get_ID()).append("]");
      return sb.toString();
    }

	/** Set Amount.
		@param Amount 
		Amount in a defined currency
	  */
	public void setAmount (BigDecimal Amount)
	{
		set_Value (COLUMNNAME_Amount, Amount);
	}

	/** Get Amount.
		@return Amount in a defined currency
	  */
	public BigDecimal getAmount () 
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Amount);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set amountemployee.
		@param amountemployee amountemployee	  */
	public void setamountemployee (BigDecimal amountemployee)
	{
		set_Value (COLUMNNAME_amountemployee, amountemployee);
	}

	/** Get amountemployee.
		@return amountemployee	  */
	public BigDecimal getamountemployee () 
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_amountemployee);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set bpm_standartCharge ID.
		@param bpm_standartCharge_ID bpm_standartCharge ID	  */
	public void setbpm_standartCharge_ID (int bpm_standartCharge_ID)
	{
		if (bpm_standartCharge_ID < 1) 
			set_ValueNoCheck (COLUMNNAME_bpm_standartCharge_ID, null);
		else 
			set_ValueNoCheck (COLUMNNAME_bpm_standartCharge_ID, Integer.valueOf(bpm_standartCharge_ID));
	}

	/** Get bpm_standartCharge ID.
		@return bpm_standartCharge ID	  */
	public int getbpm_standartCharge_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_bpm_standartCharge_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public I_BPM_StandartHours getBPM_StandartHours() throws RuntimeException
    {
		return (I_BPM_StandartHours)MTable.get(getCtx(), I_BPM_StandartHours.Table_Name)
			.getPO(getBPM_StandartHours_ID(), get_TrxName());	}

	/** Set BPM_StandartHours ID.
		@param BPM_StandartHours_ID BPM_StandartHours ID	  */
	public void setBPM_StandartHours_ID (int BPM_StandartHours_ID)
	{
		if (BPM_StandartHours_ID < 1) 
			set_Value (COLUMNNAME_BPM_StandartHours_ID, null);
		else 
			set_Value (COLUMNNAME_BPM_StandartHours_ID, Integer.valueOf(BPM_StandartHours_ID));
	}

	/** Get BPM_StandartHours ID.
		@return BPM_StandartHours ID	  */
	public int getBPM_StandartHours_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_BPM_StandartHours_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_C_Charge getC_Charge() throws RuntimeException
    {
		return (org.compiere.model.I_C_Charge)MTable.get(getCtx(), org.compiere.model.I_C_Charge.Table_Name)
			.getPO(getC_Charge_ID(), get_TrxName());	}

	/** Set Charge.
		@param C_Charge_ID 
		Additional document charges
	  */
	public void setC_Charge_ID (int C_Charge_ID)
	{
		if (C_Charge_ID < 1) 
			set_Value (COLUMNNAME_C_Charge_ID, null);
		else 
			set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID));
	}

	/** Get Charge.
		@return Additional document charges
	  */
	public int getC_Charge_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Charge Name.
		@param ChargeName 
		Name of the Charge
	  */
	public void setChargeName (String ChargeName)
	{
		set_Value (COLUMNNAME_ChargeName, ChargeName);
	}

	/** Get Charge Name.
		@return Name of the Charge
	  */
	public String getChargeName () 
	{
		return (String)get_Value(COLUMNNAME_ChargeName);
	}

	/** Set CountEmployee.
		@param CountEmployee CountEmployee	  */
	public void setCountEmployee (int CountEmployee)
	{
		set_Value (COLUMNNAME_CountEmployee, Integer.valueOf(CountEmployee));
	}

	/** Get CountEmployee.
		@return CountEmployee	  */
	public int getCountEmployee () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_CountEmployee);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set FI Code.
		@param FI_Code FI Code	  */
	public void setFI_Code (String FI_Code)
	{
		set_Value (COLUMNNAME_FI_Code, FI_Code);
	}

	/** Get FI Code.
		@return FI Code	  */
	public String getFI_Code () 
	{
		return (String)get_Value(COLUMNNAME_FI_Code);
	}
}